

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class PersonServ
 */
@WebServlet("/person_servcommd")
public class PersonServ extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public PersonServ() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		response.setContentType("text/html;charset=euc-kr");
		PrintWriter out = response.getWriter();
		String[] view = request.getParameterValues("view");
//		System.out.println("test");
//		System.out.println(view[i]);
//		System.out.println(view[1]);
		
		out.println("<html>");
		out.println("<head>");
		out.println("</head>");
		out.println("<body>");
//		out.println("<table align='conter' bgcolor='blue'>");
//		out.println("<tr>");
		for(int i=0;i<view.length;i++){
//		out.println("<td>");
		out.println("<img src=http://localhost/First/test2/"+view[i]+">");
//		out.println("</td>");
		}
//		out.println("</tr>");
//		out.println("</table>");
		out.println("</body>");
		out.println("</html>");
	}

}
